//
//  SimAlertView.h
//

#import <UIKit/UIKit.h>
#import "SimDefine.h"

typedef BOOL(^ControlDismissAlertBlock)(NSInteger selectedIndex);
typedef void(^DismissAlertBlock)(NSInteger selectedIndex);

SimDefineValue(kSimAlertViewTitleFont, UIFont *)
SimDefineValue(kSimAlertViewMsgFont, UIFont *)
SimDefineValue(kSimAlertViewBtnFont, UIFont *)

SimDefineValue(kSimAlertViewTitleColor, UIColor *)
SimDefineValue(kSimAlertViewMsgColor, UIColor *)
SimDefineValue(kSimAlertViewBtnNormalColor, UIColor *)
SimDefineValue(kSimAlertViewBtnConfirmColor, UIColor *)

@interface SimAlertView : UIView

@property (nonatomic) NSTextAlignment msgTextAlignment;

- (id)initWithTitle:(NSString *)title message:(NSString *)message btns:(NSArray *)btnsArray dismissBlock:(DismissAlertBlock)block;
- (id)initWithTitle:(NSString *)title message:(NSString *)message btns:(NSArray *)btnsArray controlDismissBlock:(ControlDismissAlertBlock)block;

- (void)show;
- (void)dismissAlertView;

@end
